﻿using SuperMap.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace winprop
{
    public class CoordSysTranslatorHandler
    {

        /// <summary>
        /// 坐标 投影转换
        /// </summary>
        /// <param name="geometry">Geometry</param>
        /// <param name="srcPrjCoordSys">Geometry 的投影</param>
        /// <param name="targetPrjCoordSys">需要转换的投影</param>
        /// <returns>是否转换成功</returns>
        public static bool ConvertCoordSys(Geometry geometry, PrjCoordSys srcPrjCoordSys, PrjCoordSys targetPrjCoordSys)
        {
            return CoordSysTranslator.Convert(geometry, srcPrjCoordSys, targetPrjCoordSys, new CoordSysTransParameter(), CoordSysTransMethod.CoordinateFrame);
        }

    }
}